<template>
  <div class="SwiftAI">
    <div class="theme"></div>
    <div class="section">
      <div class="wrapper" style="display: flex">
        <div
          style="
            display: flex;
            flex-direction: column;
            width: 38%;
            margin-right: 15%;
          "
        >
          <span
            style="
              padding-top: 5%;
              font-size: 36px;
              font-weight: 400;
              line-height: 52.13px;
              text-align: left;
            "
            >平台介绍</span
          >
          <span
            style="
              padding-top: 2%;
              font-size: 18px;
              font-weight: 400;
              line-height: 26.06px;
              text-align: left;
            "
          >
            Swift AI 确保机器学习模型的健康和稳健性，以保护 AI 免受错误和 威胁。
            Swift AI 提供了涵盖整个机器学习模型生命周期的完整安全
            和信任解决方案，从数据整理、模型训练、风险评估、预防、检测、监控到部署和缓解。
          </span>
        </div>
        <img src="@/assets/img/资源 48@3x 1.png" alt="" />
      </div>
    </div>
    <div class="section" style="background-color: #f7f7f7">
      <div class="wrapper" style="display: flex;">
        <img src="@/assets/img/1.png" alt="" />
        <img src="@/assets/img/2.png" alt="" />
        <img src="@/assets/img/3.png" alt="" />
      </div>
    </div>
    <div class="section">
      <div class="wrapper">
        <h2 class="section-title" style="text-align: start">
          只有 AI 原生安全才能理解和保护 AI/LLM 的无限连接和复杂逻辑。
        </h2>
      </div>
      <div class="wrapper" style="display: flex; padding-top: 0">
        <div class="box">
          <img src="@/assets/img/img1.png" alt="" />
          <div class="box-text">
            <span class="box-title">AI渗透测试</span>
            <span class="box-desc">
              利用渗透测试方法评估机器学习模型的鲁棒性和潜在风险，并生成综合风险评估报告。
            </span>
          </div>
        </div>
        <div class="box">
          <img src="@/assets/img/img2.png" alt="" />
          <div class="box-text">
            <span class="box-title">AI缓解</span>
            <span class="box-desc">
              提供实时解决方案，以应对监控中发现的负面影响，如增强 AI
              防护或解决潜在问题。
            </span>
          </div>
        </div>
        <div class="box">
          <img src="@/assets/img/img3.png" alt="" />
          <div class="box-text">
            <span class="box-title">AI保护</span>
            <span class="box-desc">
              包括用于强化和保护模型免受错误、偏见和恶意攻击的工具。
            </span>
          </div>
        </div>
        <div class="box">
          <img src="@/assets/img/img4.png" alt="" />
          <div class="box-text">
            <span class="box-title">AI监控</span>
            <span class="box-desc">
              对本地机器学习系统进行实时和主动监控，在检测任何可能影响 AI
              行为的恶意活动或变化。
            </span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scope>
.SwiftAI {
  margin-top: 60px;

  .theme {
    height: 626px;
    width: 100%;
    background: #f7f7f7;
    background-image: url("@/assets/img/banner5.png");
    background-size: 100% 100%;

    .wrapper {
      margin: 0 auto;
      max-width: 1232px;
      padding: 167px 16px 0;
      position: relative;
      width: 100%;

      .title {
        color: #333;
        display: inline-block;
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 12px;
        position: relative;
      }

      .desc {
        color: #333;
        font-size: 20px;
        font-weight: 400;
        line-height: 36px;
        margin-bottom: 40px;
        max-width: 680px;
      }
    }
  }

  .section {
    width: 100%;
    background: #fff;
    padding-bottom: 100px;
    background-size: 100% 100%;

    .wrapper {
      height: 100%;
      margin: 0 auto;
      max-width: 75%;
      padding: 80px 16px 0;

      .section-title {
        margin-bottom: 50px;
        padding: 0 10px;
        color: #000;
        font-size: 32px;
        font-weight: 500;
        margin-bottom: 60px;
        text-align: center;
      }

      .section-content {
        zoom: 1;
        box-sizing: border-box;
        display: block;
        height: auto;
        margin-left: 0;
        margin-right: 0;
        position: relative;
        background-color: #fff;
        box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.1);
        padding: 35px;
        width: 22%;
        margin: 20px;
        border-radius: 16px;

        .sub-title {
          color: #252528;
          font-size: 20px;
          font-weight: 500;
          margin: 30px 0 20px;
        }

        .sub-desc {
          color: #666666;
          font-size: 16px;
          line-height: 24px;
          margin-bottom: 30px;
          white-space: pre-line;
        }
      }

      .list-wrapper {
        display: flex;
        justify-content: center;
        margin: 0 -16px;

        .list-item {
          border: 1px solid #e7e7e7;
          border-radius: 4px;
          cursor: pointer;
          display: flex;
          margin: 0 16px 16px;
          min-height: 30px;
          padding: 30px;

          .content {
            flex: 1;

            .title {
              align-items: center;
              display: flex;
              justify-content: space-between;
            }

            .title:before {
              background: #0074ff;
              content: "";
              height: 15px;
              left: -10px;
              position: relative;
              top: 10px;
              transform: translateY(-50%);
              width: 5px;
            }
          }
        }

        .list-item:hover {
          box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
        }
      }

      .box {
        display: flex;
        flex-direction: column;
        margin: 20px;

        img {
          width: 320px;
        }

        .box-text {
          display: flex;
          flex-direction: column;

          .box-title {
            margin-top: 10px;
            font-size: 20px;
            font-weight: 400;
            line-height: 28.96px;
            text-align: left;
          }

          .box-desc {
            margin-top: 10px;
            font-size: 16px;
            font-weight: 400;
            line-height: 23.17px;
            text-align: left;
          }
        }
      }
    }
  }

  .anchor {
    position: fixed;
    width: 6%;
    top: 25%;
    left: 5%;
    // transform: translateX(-860px);
    padding: 5px;
    border-radius: 4px;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    box-shadow: 0 5px 16px 0 rgba(0, 0, 0, 0.1);
  }
}
</style>
